package com.gopay.common.domain.cbrmb;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 跨境人民币 承运方信息表
 * @CbRmbWaybill.java
 * @author lailingyu
 * @2016-12-7 上午11:52:39  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CB_RMB_CARRIER_INFO")
public class CbRmbCarrierInfo extends BaseEntity {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -9195857640913068567L;

    /**
     * 代码
     */
    @Id
    @SequenceGenerator(name="CbRmbCarrierInfoSequence",sequenceName="CB_RMB_CARRIER_INFO_SEQ")
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CbRmbCarrierInfoSequence")
    @Column(name="CODE", unique=true, nullable=false)
    private Integer code;

    /**
     * 客户ID
     */
    @Column(name="CUST_ID")
    private String custId;

    /**
     * 名称
     */
    @Column(name="NAME")
    private String name;

    /**
     * 创建时间
     */
    @Column(name="CREATED_TS")
    private Date createdTs;

    /**
     * 最后修改时间
     */
    @Column(name="LAST_UPD_TS")
    private Date lastUpdTs;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

}
